﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataTransferObjects;
using DataAccessObject;

namespace Business
{
    public class AccountBUS
    {
        
        static public void RegNewAccount(AccountInforDTO accountInfor)
        {
            AccountDAO.RegNewAccountToDB(accountInfor);
        }

        static public void ChangeAccInfor(AccountInforDTO accountInfor)
        {
            AccountDAO.ChangeAccInfor(accountInfor);
        }

        static public AccountInforDTO getAccInforFromDB(int iUserID)
        {
            return AccountDAO.getAccInforFromDB(iUserID);
        }

        static public AccountInforDTO getAccInforFromDB(string iUserEmail)
        {
            return AccountDAO.getAccInforFromDB(iUserEmail);
        }

        static public void exportAccountToFile(int iUserID)
        {
            AccountDAO.exportAccountToFile(iUserID);
        }


        public static AccountInforDTO[] getAccsInforFromDB()
        {
            return AccountDAO.getAccsInforFromDB();
        }
    }
}
